package com.springsecurity.data.repositories;

import com.springsecurity.data.domains.ObjectType;
import java.util.List;
import org.springframework.data.repository.CrudRepository;

/**
 *
 * @author Evgeny Obednin
 */
public interface ObjectTypeRepository extends CrudRepository<ObjectType, 
        Integer> {
    
    public List<ObjectType> findByParentTypeId(Integer parentTypeId);
    
    public List<ObjectType> findByParentTypeIdIsNull();
    
    public List<ObjectType> findByDescriptionLike(String description);
    
    public List<ObjectType> findByName(String name);
    
    public List<ObjectType> findByNameLike(String name);
    
}
